/**
 *
 * @param { string} eventName 开启监听事件名
 * @param { function } callback 开启监听执行的回调函数
 */
export const addTuguanListenter = (eventName, callback) => {
  appInstance.uniCall(
    "addEventListener",
    {
      eventName: eventName,
      callback: function (event) {
        callback(event);
      },
    },
    (result) => {}
  );
};
/**
 *
 * @param { string } eventName 开启监听事件名
 */
export const removeTuguanListenter = (eventName) => {
  appInstance.uniCall(
    "removeEventListener",
    {
      eventName: eventName,
    },
    (result) => {
      console.log("取消监听执行情况", result);
    }
  );
};
